package com.weixing.mall.provider.model.enums.cms;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.enums.IBaseEnum;
import lombok.NoArgsConstructor;

/**
 * 新闻资讯状态-枚举
 *
 * @Author wx
 * @Date 2019/8/26 11:23
 * @Version 1.0
 */

@NoArgsConstructor
public enum NewsStatusEunm implements IBaseEnum<Integer> {

    NOT_PUB(1,"未发布"),
    HAS_PUB(2,"已发布"),
    UNSHELVE(3,"已下架");
    private int value;
    private String desp;

    NewsStatusEunm(int value, String desp) {
        this.value = value;
        this.desp = desp;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }
    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
